package cn.sciento.starter.social.qq.connect;

import cn.sciento.starter.social.core.common.connect.SocialServiceProvider;
import cn.sciento.starter.social.core.common.connect.SocialTemplate;
import cn.sciento.starter.social.core.provider.Provider;
import cn.sciento.starter.social.qq.api.DefaultQQApi;
import cn.sciento.starter.social.qq.api.QQApi;

public class QQServiceProvider extends SocialServiceProvider {
  private Provider provider;
  
  public QQServiceProvider(Provider provider, SocialTemplate template) {
    super(provider, template);
    this.provider = provider;
  }
  
  public QQApi getSocialApi(String accessToken) {
    return (QQApi)new DefaultQQApi(accessToken, this.provider);
  }
}
